#!/bin/bash -e

patch_list=`find $1 -name "*.patch" |sort;`
for i in $patch_list
do
	echo $i
	patch -p1 < $i
done
